home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Sample Code / AOCE Sample Code / Interprogram Messaging Manager / IPM MessageBoard / statusdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-23  |  1.2 KB  |  54 lines  |  [TEXT/MPS ]

  1. /*-------------------------------------------------------------------------------------
  2.  *
  3.  * Simple Sample AYS Application Framework
  4.  *
  5.  * ©1991 Apple Computer
  6.  *
  7.  -------------------------------------------------------------------------------------*/
  8. /*
  9.  * commands.c -- called in response to menu commands or appleevents
  10.  *
  11.  * change history:
  12.  *
  13.  * SJF        11/6/91        1.0d1        initial coding
  14.  *
  15.  */
  16.  
  17.  
  18. #ifndef __LISTS__
  19. #include <Lists.h>
  20. #endif
  21.  
  22. #ifndef __DIALOGS__
  23. #include <Dialogs.h>
  24. #endif
  25.  
  26. #ifndef __EVENTS__
  27. #include <Events.h>
  28. #endif
  29.  
  30.  
  31. struct DlogData {
  32.     ListHandle    msgList;
  33.     ListHandle    destList;
  34. };
  35. typedef struct DlogData DlogData,*DlogDataPtr;
  36.  
  37. void MakeMainDialog(void);
  38. void CloseMainDialog(void);
  39.  
  40. pascal void DrawScrollList(DialogPtr theDlg,short item);
  41. pascal void DrawGraySeparator(DialogPtr theDlg,short item);
  42. pascal void DrawEmptyItem(DialogPtr theDlg,short item);
  43.  
  44. ListHandle GetListFromItem(DialogPtr theDlg,short item);
  45. short GetSelectedMessage(void);
  46. short GetSelectedDestination(void);
  47.  
  48. void AddItemToList(short msgNum,short whichList);
  49. void EditItemInList(short msgNum,short whichList);
  50.  
  51. Boolean HandleDialogEvents(EventRecord *ev);
  52.  
  53. void HandleButtons(DialogPtr theDlg, short buttonSelected);
  54.